package com.zhkjnet.zhyy.dao;

import com.zhkjnet.zhyy.entity.RechargeRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RechargeRecordDao {

    void save(RechargeRecord record);

    void update(RechargeRecord record);

    RechargeRecord findByIdWithUser(Long id);

    List<RechargeRecord> findAllSuccessBefore30Day();

    List<RechargeRecord> findAllSubmit();

    List<RechargeRecord> findAll(@Param("offset") Long offset, @Param("count") Integer count);

    Long count();

    /**
     * 获取所有单次返现记录
     * @return
     */
    List<RechargeRecord> findAllSingle();

    void updateAllMin();

}
